/*
 * @Autor: dingxiaolin
 * @Date: 2020-03-27 21:47:21
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-05-06 15:44:42
 */
import Vue from 'vue';
import '@/style/index'; // global css
import 'amfe-flexible';
import App from './App.vue';
import router from './router';
import ElementUI from 'element-ui';
import store from './vuex';
import vueSwiper from 'vue-awesome-swiper';
import preview from 'vue-photo-preview';
import dayjs from 'dayjs';
import Bus from './common/util/bus';
import axios from "axios";
Vue.prototype.window = window;
Vue.use(vueSwiper)
    .use(preview)
    .use(ElementUI, {
        size: 'small'
    });
Vue.config.productionTip = false;
Vue.prototype.TITLE = process.env.TITLE;
Vue.prototype.$store = store;
Vue.prototype.$axios = axios;
Vue.prototype.$bus = Bus;
Vue.prototype.$dayjs = dayjs;
import directive from '@/directive';
Vue.use(directive);
export default new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
});
